package com.mrdeer.web.service.sys;

import com.mrdeer.common.base.BaseService;
import com.mrdeer.common.entity.dto.RoleDepartmentDTO;
import com.mrdeer.common.entity.sys.RoleDepartment;

import java.util.List;

/**
 * 角色部门接口
 */
public interface SysRoleDepartmentService extends BaseService<RoleDepartment, RoleDepartmentDTO> {

    /**
     * 通过roleId获取
     *
     * @param roleId
     * @return
     */
    List<RoleDepartment> findByRoleId(String roleId);

    /**
     * 通过角色id删除
     *
     * @param roleId
     */
    void deleteByRoleId(String roleId);

    /**
     * 通过角色id删除
     *
     * @param departmentId
     */
    void deleteByDepartmentId(String departmentId);
}
